using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTO
{
	public class LoaiPhongDTO
	{

		//////////////////////////////////////////////////////////

		                                                          

		//            Enter code your here                      //


        public bool KiemTra()
        {
            if (this.DonGia <= 0 
                || this.TenLoaiPhong == string.Empty
                || this.MaLoaiPhong < 0)
                return false;
            return true;
        }

		//////////////////////////////////////////////////////////
	

		private int m_MaLoaiPhong;
		private string m_TenLoaiPhong;
		private double m_DonGia;

		public  int MaLoaiPhong
		{
			get { return this.m_MaLoaiPhong; }
			set { this.m_MaLoaiPhong = value; }
		}


		public  string TenLoaiPhong
		{
			get { return this.m_TenLoaiPhong; }
			set { this.m_TenLoaiPhong = value; }
		}


		public  double DonGia
		{
			get { return this.m_DonGia; }
			set { this.m_DonGia = value; }
		}

		public static readonly string DisplayMember ="TenLoaiPhong";

		public static readonly string ValueMember ="MaLoaiPhong";

	}

}